import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:part_time_job_pro/common/models/models.dart';
import 'package:part_time_job_pro/main.dart';

//通用接口
mixin ComMixins {
  //发送短信验证码
  Future<String?> sendSmsCode(String mobile, {String type = "1"}) async {
    var result = await restClient.sendSmsCode(type, mobile);
    return result?.data;
  }

  //获取字典数据
  Future<List<SysDictData>?> getDictDataList(String dictKey) async {
    var result = await restClient.getDictDataList(dictKey);
    return result?.data;
  }
}
